package dev.pda.display

import androidx.multidex.MultiDexApplication
import dev.pda.display.util.mqtt.MqttConfig
import dev.pda.display.util.mqtt.MqttManager

class App : MultiDexApplication() {

    companion object {

        lateinit var instance: App
            private set
    }

    override fun onCreate() {
        super.onCreate()
        instance = this
        initMQTT()
    }

    private fun initMQTT() {
        MqttManager.getInstance().init(this, MqttConfig().create())
    }
}